﻿using System;
using System.Security.Principal;
using System.Threading;
using MaxStoreShop.TestClient.ServiceReference1;

namespace MaxStoreShop.TestClient
{
    class Program
    {
        static void Main(string[] args)
        {
            var client = new UserServiceClient();
//            client.ClientCredentials.UserName.
            Thread.CurrentPrincipal = new GenericPrincipal(new GenericIdentity("Maxim"), new[] { "Adminisk" }); 
            Console.WriteLine(Thread.CurrentPrincipal);
            var y = client.GetUsers();
        }
    }
}
